package com.kingstar.ceres.data;

import com.kingstar.ceres.data.holder.InsertHolderFactory;
import org.springframework.boot.autoconfigure.condition.ConditionalOnResource;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConditionalOnResource(resources = {"classpath:fileMapping.xml"})
public class InsertHolderFactoryAutoConfigure {

    @Bean
    public InsertHolderFactory insertHolderFactory(){
        return new InsertHolderFactory();
    }
}
